package com.zytlifeservice.controller.pay;

import com.zytlifeservice.domain.Result;
import com.zytlifeservice.service.pay.PublicService;
import com.zytlifeservice.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Taxi on 2017/11/29.
 */

@RestController
@RequestMapping(value = "/refund")
public class RefundController {

    @Autowired
    PublicService publicService;

    @PostMapping(value = "/customRefund")
    public Result refund(String outTradeNo) {
        publicService.refundPay(outTradeNo, "");
        return ResultUtil.success();
    }
}
